#from luma.core.interface.serial import i2c, spi, parallel, pcf8574
import time
from luma.core.render import canvas
from luma.lcd.device import pcd8544, st7735, st7789, st7567, uc1701x, ili9341, ili9486, hd44780
from luma.core.interface.serial import i2c, spi



def main():

    with canvas(device) as draw:
      draw.text((40, 50), "Hello World", fill="red")


if __name__ == "__main__":
    serial = spi(port=0, device=0, gpio_DC=23, gpio_RST=24)
    device = st7735(serial)
    
    while True:
        main()
        time.sleep(0.1)